let  { ipcRenderer } = require('electron')
ipcRenderer.on('return-message',(event,args)=>{
    console.log(event)
    console.log('渲染进程接收到的信息:',args)
})
ipcRenderer.send('message','你好主进程')
 
let btn = document.querySelector('button')
btn.onclick = function(){
    ipcRenderer.send('openNew','https://baidu.com')
}

